﻿<UserControl x:Class="TFS.Kanban.Modules.KanbanBoard.Views.BoardView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Components="clr-namespace:TFS.Kanban.Modules.KanbanBoard.Views.Components">
    
    <ItemsControl ItemsSource="{Binding Lanes}">
        
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <!-- wrap these items in a UniformGrid -->
                <UniformGrid Rows="1" Columns="{Binding NumberOfLanes}"/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Components:Lane DataContext="{Binding}" />
            </DataTemplate>
        </ItemsControl.ItemTemplate>
        
    </ItemsControl>
    
</UserControl>
